
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
   function Wolf(){
       this.eye="闪闪发光";
   }
    var seven=new Wolf();
    seven.fight="七个打一个";
    function Dog(){
        this.fight="一个打七个";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
    }
   Dog.prototype=seven;
   var wangcai=new Dog();
    console.log(wangcai);
</script>
</body>
</html>